home *** CD-ROM | disk | FTP | other *** search
/ Freelog 70 / Freelog070.iso / Internet / EasyPHP / easyphp1-8_setup.exe / {app} / phpmyadmin / db_details_export.php < prev    next >
Encoding:
PHP Script  |  2004-06-13  |  1.9 KB  |  63 lines

  1. <?php
  2. /* $Id: db_details_export.php,v 2.3 2004/06/13 21:32:16 lem9 Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5.  
  6. /**
  7.  * Gets some core libraries
  8.  */
  9. $sub_part  = '_export';
  10. require('./db_details_common.php');
  11. $url_query .= '&goto=db_details_export.php';
  12. require('./db_details_db_info.php');
  13. ?>
  14. <!-- Dump of Database -->
  15. <?php
  16. /**
  17.  * Displays the form
  18.  */
  19. $export_page_title = $strViewDumpDB;
  20.  
  21. $multi_values = '';
  22. if ($num_tables > 1) {
  23.  
  24.     $multi_values = '<div align="center"><select name="table_select[]" size="6" multiple="multiple">';
  25.     $multi_values .= "\n";
  26.  
  27.     $i = 0;
  28.     while ($i < $num_tables) {
  29.         $table   = $tables[$i]['Name'];
  30.         if (!empty($selectall) || (isset($tmp_select) && strpos(' ' . $tmp_select, '|' . $table . '|'))) {
  31.             $is_selected = ' selected="selected"';
  32.         } else {
  33.             $is_selected = '';
  34.         }
  35.         $table   = htmlspecialchars($table);
  36.         $multi_values .= '                <option value="' . $table . '"' . $is_selected . '>' . $table . '</option>' . "\n";
  37.         $i++;
  38.     } // end while
  39.     $multi_values .= "\n";
  40.     $multi_values .= '</select></div>';
  41.  
  42.     $checkall_url = 'db_details_export.php?'
  43.                   . PMA_generate_common_url($db)
  44.                   . '&goto=db_details_export.php';
  45.  
  46.     $multi_values .= '<br />
  47.             <a href="' . $checkall_url . '&selectall=1" onclick="setSelectOptions(\'dump\', \'table_select[]\', true); return false;">' . $strSelectAll . '</a>
  48.              / 
  49.             <a href="' . $checkall_url . '" onclick="setSelectOptions(\'dump\', \'table_select[]\', false); return false;">' . $strUnselectAll . '</a>';
  50. } elseif ($num_tables == 0) {
  51.     echo $strDatabaseNoTable;
  52.     require_once('./footer.inc.php');
  53. } // end if
  54.  
  55. $export_type = 'database';
  56. require_once('./libraries/display_export.lib.php');
  57.  
  58. /**
  59.  * Displays the footer
  60.  */
  61. require_once('./footer.inc.php');
  62. ?>
  63.